<%-- 
    Document   : show_account_statement
    Created on : Sep 20, 2012, 4:33:18 PM
    Author     : faizal.azlee
--%>

<%@page contentType="text/html" pageEncoding="windows-1252"%>
<%@ include file="/WEB-INF/jsp/include/page_header.jspf" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Pindahan Simpanan</title>
        <script type="text/javascript">
//            $(window).on('beforeunload', function() {
//                var f = document.forms[0];
//                var url = '${pageContext.request.contextPath}/deposit?showMainForm';
//                f.action = url;
//                f.submit();
//            });
            $(document).ready(function(){
                $('form').submit( function () {
                    return formValidation();
                }); 
            });           
          
            function popup(){
                var url = '${pageContext.request.contextPath}/deposit?fundTransfer';
                window.open(url);
            }    
        </script>
    </head>
    <body>
        <s:form beanclass="th.stripes.action.DepositActionBean">
            <div id="content">
                <div id="logo">
                    <span>
                        <img src="${pageContext.request.contextPath}/images/img/ribbon.png"/>               
                    </span>
                </div>
                <h3>
                    Pindahan Simpanan
                </h3> 
                <p>
                    <label>Status :</label>${actionBean.deposit.stsPindahanDis}&nbsp;
                </p>
                <p>
                    <label>No. Resit :</label>${actionBean.deposit.noResit}&nbsp;
                </p>
                 <p>
                    <label>Tarikh/Masa :</label><fmt:formatDate value="${actionBean.deposit.tarikhTransaksi}" pattern="dd/MM/yyyy HH:mm:ss"/>&nbsp;
                </p>
                <p>
                    <label>Dari Akaun TH :</label>${actionBean.deposit.noAkaunDari}&nbsp;
                </p>
                <p>
                   <label>Nama :</label>${actionBean.deposit.nama}&nbsp; 
                </p>                    
                <p>
                    <label>Ke Akaun TH :</label>${actionBean.deposit.noAkaunPenerima}&nbsp;
                </p>
                <p>
                    <label>Nama :</label>${actionBean.deposit.namaPenerima}&nbsp;
                </p>
                <p>
                    <label>Jumlah (RM) :</label><fmt:formatNumber value="${actionBean.deposit.amaun}" pattern="#,###.00"/>&nbsp;
                </p>
               <p align="center">
                    <s:button name="" value="Cetak" class="button green" onclick="popup()"/>
                </p>                                                   
            </div>
        </s:form>
    </body>
</html>
